<template>
  <div style="height: 100%;width: 100%;">
    <iframe v-if="url" id="frame" :src="url" style="width: 100%;height:100%;"></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: undefined
    }
  },
  mounted() {
    const type = this.$route.query.type;
    if (type === '1') {
      this.url = 'https://jinshuju.net/f/MKwxcq';
    } else if (type === '2') {
      this.url = 'https://jinshuju.net/f/GOud3S'
    }
  }
}
</script>

<style scoped lang="scss">

</style>
